Set
Function
This API is used for Settings Alarm > PTZLinkageControl(cloud dedicated) Parameters.
Request Message
Parameter Description
Table 1
Parameter | Range | Type | Description |
---|---|---|---|
channel_info | object | For details, see Table 2 |
Table 2
Parameter | Range | Type | Description |
---|---|---|---|
ptz_linkage_name | "Mode_Preset" "Mode_Trace" "Mode_Pattern_Scan" | string | Linkage ptz type, 0: preset point, 1: track cruise, 2: pattern scan |
ptz_linkage_num | 0-255 | int | Number of the ptz type |
ptz_linkage_time | 0-600 | int | ptz linkage time |
preset_dwell_time | 0-600 | int | Residence time of ptz linkage preset point |
alarm_source | 1-1064 | int | nvr linkage alarm channel(Channel 1, 2, 3, 4, 5, 6...) |
alarm_type | 0-128 | int | Type of the nvr linkage alarm(for example, io fd cc various, but do not worry about the type) |
Sample:
POST /API/LinkageConfig/PTZLinkageControl/Set HTTP/1.1
{
"data": {
"channel_info": {
"CH1": {
"ptz_linkage_name": "Mode_Preset",
"preset_dwell_time": 1,
"ptz_linkage_num": 0,
"ptz_linkage_time": 30
}
}
},
"version": "1.0"
}
Response Message
Sample:
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": "success",
"data": {}
}
Error Code
See Response Messages Body and Common error_code for more information.